/* enum */
import { TenantPayStatusEnum, TenantTypeEnum } from "@model/enum/TenantEnum"


function isTenantTypeDingTalk(tenantType: string | number | undefined | null | TenantTypeEnum): boolean {
  return tenantType == TenantTypeEnum.DingTalk
}

function isTenantTypeMultiClient(tenantType: string | number | undefined | null | TenantTypeEnum): boolean {
  return tenantType == TenantTypeEnum.MultiClient
}

function isTenantTypeQYWXThirdParty(tenantType: string | number | undefined | null | TenantTypeEnum): boolean {
  return tenantType == TenantTypeEnum.QYWXThirdParty
}

function isTenantTypeQYWX(tenantType: string | number | undefined | null | TenantTypeEnum): boolean {
  return tenantType == TenantTypeEnum.QYWX
}

function isTenantTypeFeiShu(tenantType: string | number | undefined | null | TenantTypeEnum): boolean {
  return tenantType == TenantTypeEnum.FeiShu
}

function isPayed(isPay: number): boolean {
  return isPay == TenantPayStatusEnum.Payed
}

function isNotPayed(isPay: number): boolean {
  return !isPayed(isPay)
}

export {
  isTenantTypeDingTalk,
  isTenantTypeMultiClient,
  isTenantTypeQYWXThirdParty,
  isTenantTypeQYWX,
  isTenantTypeFeiShu,
  isPayed,
  isNotPayed,
}

export default {
  isTenantTypeDingTalk,
  isTenantTypeMultiClient,
  isTenantTypeQYWXThirdParty,
  isTenantTypeQYWX,
  isTenantTypeFeiShu,
  isPayed,
  isNotPayed,
}